import os


#
# Basic site related settings.
#
DEBUG = os.environ['SERVER_SOFTWARE'].startswith('Dev')
INSTALLED_APPS = (
    'fmap',
)
MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.middleware.http.ConditionalGetMiddleware',
    'fmap.middleware.AddUserToRequestMiddleware',
)
ROOT_URLCONF = 'fmap.urls'
SETTINGS_MODULE = 'settings'


#
# Template related settings.
#
TEMPLATE_CONTEXT_PROCESSORS = ()
TEMPLATE_DEBUG = DEBUG
TEMPLATE_DIRS = (
    os.path.join(os.path.dirname(__file__), 'templates'),
)
TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
)


#
# Language code and internationalization settings.
# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
# http://blogs.law.harvard.edu/tech/stories/storyReader$15
#
LANGUAGE_CODE = 'en-us'
USE_I18N = True


#
# Timezone settings.
# http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
#
TIME_ZONE = 'America/Los_Angeles'


#
# Slash appending setting.
#
APPEND_SLASH = False
